<template>
	<view class="center">
		<view class="order" v-for="(item,index) in rammend" :key="index">
			<u-table class="orderc">
				<u-tr>
					<u-th>联系方式</u-th>
					<u-th>地址</u-th>
					<u-th>备注</u-th>
					<u-th>取件码</u-th>
					
				</u-tr>
				<u-tr>
					<u-td>{{item.phone}}</u-td>
					<u-td>{{item.address}}</u-td>
					<u-td>{{item.remark}}</u-td>
					<u-td>{{item.code}}</u-td>
			
				</u-tr>
			</u-table>
			<u-line color="#e4e7ed" />
		</view>
		<view class="tites">
		<u-empty text="没有更多" mode="order" icon-size="50rpx"></u-empty>
		</view>
	</view>
</template>

<script>
	export default {
	data(){
		return{
			rammend:[]
		}
	},
	mounted(){
			const db = uniCloud.database() //代码块为cdb
			// 使用uni-clientDB
			db.collection('uni-id-base-order')
			  .where(
					'user_id == $cloudEnv_uid && status==3'
			  ).get()
			  .then((res)=>{
			   this.rammend=res.result.data
			  })
	}
	}
</script>

<style>
</style>
